﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TR.AppService.Dto;
using TR.AppService.Dto.XSddDto;
using TR.Domain.Entity;
using TR.Domain.Entity.XSDDGL;

namespace TR.AppService.AppService.XSDD_GuanLi
{
    public interface IXsddAppService
    {
        //销售订单分页查询
        Task<DtoFenYe<XSdd>> XsddFenYeAsync(int mys,int dqy,string? qsj,string? hsj,tjXsddDto xsddDto);

        //批量逻辑删除
        Task<bool> XsddDelete(List<int> isdel);

        //批量审核
        Task<bool> XsddShenHe(List<int> Bian, string states, string sureman, string suredate);

        //批量撤销
        Task<bool> XsddCheXiao(List<int> Bian);

        //客户信息查询
        Task<List<bs_Customer>> KHSelect();

        //根据客户编号查询相关信息
        Task<bs_Customer> KHBHSelect(string bh);

        //销售订单新增
        Task<bool> XsddInsert(XsddJcxx jcxx, List<XsddXsmx> xsmx);

        //销售订单修改
        Task<bool> XsddUpdate(XsddJcxx jcxx, List<XsddXsmx> xsmx);

        //销售信息表
        Task<wh_Sale_h> XsddJbxxSelect(string tj);

        //销售详情
        Task<List<XsddXsxqCX>> XsddXsxqSelect(string tj);

        //添加查询销售商品信息
        Task<List<XsddTjSP>> XsddTjSPSelect();
    }
}
